package com.xzc.java8.B_Stream.b_distinct;

import lombok.Data;

@Data
public class Apple {
    private int weight;
    private String color;
    private String name;

    public Apple() {
    }

    public Apple(int weight) {
        this.weight = weight;
    }

    public Apple(String color, int weight) {
        this.color = color;
        this.weight = weight;
    }

    public boolean isRedApple() {
        return color.equals("red");
    }
}
